# from:xujiexin 2021.12.20
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from ui import *

class MyClass(QWidget,Ui_Form):

    def __init__(self):
        super().__init__()
        self.initUI()

    def initUI(self):
        self.setupUi(self)
        
        #开机迎宾pushButton_1
        self.pushButton_1.clicked.connect(self.turn_on)
        self.pushButton_2.clicked.connect(self.celebrate)
        self.pushButton_3.clicked.connect(self.exhausted)
        self.pushButton_4.clicked.connect(self.normal)
        self.pushButton_5.clicked.connect(self.matrix)
        self.pushButton_6.clicked.connect(self.turn_off)
        self.show()
    
    def turn_on(self):
        print('1开机迎宾：灯带，智能表面，语音（语音响应唤醒）')

    def celebrate(self):
        print('2生日欢庆：灯带，智能表面')

    def exhausted(self):
        print('3疲劳监测：灯带，语音（疲劳提醒），车机弹窗')
    
    def normal(self):
        print('4正常模式：娱乐控制')

    def matrix(self):
        print('5顶灯控制：顶灯，灯带，智能表面，语音，手势控制')

    def turn_off(self):
        print('6关闭：将目前开启功能全部关闭')

if __name__=='__main__':
    app=QApplication(sys.argv)
    mc=MyClass()
    app.exec_()